package com.system.common.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("seckillgoods")
public class SeckillGoods implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;//秒杀商品id
    private Integer goodsid;//关联普通商品id
    private Integer activityid;
    private BigDecimal seckillprice;//秒杀价格
    private Integer stock;//秒杀库存
    private Integer status;//秒杀状态 0：未开始 1：进行中 2：已结束
    private Date createtime;
    private Date updatetime;
    @TableLogic
    private Integer isdel;

    @TableField(exist = false)
    private Goods goods;

}